import * as config from '../util/config';
import axios from 'axios';

export function add_dept(name, createUser) {
    return axios.post(config.localhostUrl + `dept`, { name, createUser });
}

export function get_depts(obj) {
    return axios.post(config.localhostUrl + 'depts', obj);
}